package com.koron.plan.web.patrolplan.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.koron.plan.web.common.DeleteFlag;
import com.koron.plan.web.common.Sortable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author twcao
 * @title: PatrolPlanPointRel
 * @projectName GDH_EAM_V2
 * @description: 巡视计划-巡视点关系
 * @date 2021/10/279:34
 */
@Data
public class PatrolPlanPointRel implements Serializable, DeleteFlag, Sortable {

    private static final long serialVersionUID = -3996637033226015701L;

    @ApiModelProperty("关系主键")
    private String id;

    @ApiModelProperty("巡视计划id")
    private String planId;

    @ApiModelProperty("巡视点id")
    private String pointId;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonIgnore
    @ApiModelProperty("删除标志 0：未删除 1：已删除")
    private Boolean deleteFlag;
}
